package com.yuyou.fn.educational.entity;

import com.github.wens.mybatisplus.annotations.TableField;
import com.github.wens.mybatisplus.annotations.TableId;
import com.github.wens.mybatisplus.annotations.TableName;
import com.github.wens.mybatisplus.examples.Example;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 *
 * 课程订单
 *
 */
@TableName(value = "course_order")
public class CourseOrder implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	public static Example<CourseOrder> createExample(){
		return new Example<CourseOrder>(CourseOrder.class);
	}

	/**  */
	@TableId(value = "course_order_id")
	private Long courseOrderId;

	/**  */
	@TableField(value = "student_id")
	private Long studentId;

	/** 总金额 */
	@TableField(value = "total_amount")
	private BigDecimal totalAmount;

	/** 应缴金额 */
	@TableField(value = "payable_amount")
	private BigDecimal payableAmount;

	/** 已缴金额 */
	@TableField(value = "paid_amount")
	private BigDecimal paidAmount;

	/**  */
	@TableField(value = "create_time")
	private Date createTime;

	/**  */
	@TableField(value = "update_time")
	private Date updateTime;

	/** 报名来源 0：线下 1：线上 2:转班 3:tms */
	@TableField(value = "reg_from")
	private Integer regFrom;

	/** 缴费状态 0:未缴费 1:欠费 2:已缴费 4:撤销 */
	@TableField(value = "charging_status")
	private Integer chargingStatus;


	@TableField(value = "student_name")
	private String studentName;

    /** 父级订单id **/
	@TableField(value = "outer_order_id")
	private Long parentOrderId;


	/** 操作人 */
	private String operator;


	public Long getCourseOrderId() {
		return this.courseOrderId;
	}

	public void setCourseOrderId(Long courseOrderId) {
		this.courseOrderId = courseOrderId;
	}

	public Long getStudentId() {
		return this.studentId;
	}

	public void setStudentId(Long studentId) {
		this.studentId = studentId;
	}

	public BigDecimal getTotalAmount() {
		return this.totalAmount;
	}

	public void setTotalAmount(BigDecimal totalAmount) {
		this.totalAmount = totalAmount;
	}

	public BigDecimal getPayableAmount() {
		return this.payableAmount;
	}

	public void setPayableAmount(BigDecimal payableAmount) {
		this.payableAmount = payableAmount;
	}

	public BigDecimal getPaidAmount() {
		return this.paidAmount;
	}

	public void setPaidAmount(BigDecimal paidAmount) {
		this.paidAmount = paidAmount;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getRegFrom() {
		return this.regFrom;
	}

	public void setRegFrom(Integer regFrom) {
		this.regFrom = regFrom;
	}

	public Integer getChargingStatus() {
		return this.chargingStatus;
	}

	public void setChargingStatus(Integer chargingStatus) {
		this.chargingStatus = chargingStatus;
	}

	public String getStudentName() {
		return studentName;
	}

	public void setStudentName(String studentName) {
		this.studentName = studentName;
	}

	public Long getParentOrderId() {
		return parentOrderId;
	}

	public void setParentOrderId(Long parentOrderId) {
		this.parentOrderId = parentOrderId;
	}

	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}
	
}
